using System;
using System.Collections.Generic;
using System.Text;

namespace TidhiGanitam.DataModel
{
    public class AmrutaGhadiyaluDetails
    {
        double m_NakshatramuIndex;
        Rasi m_AmrutaGhadiyaluTime;

        public double NakshatramuIndex
        {
            get
            { return m_NakshatramuIndex; }
            set
            { m_NakshatramuIndex = value; }
        }
        public string AmrutaGhadiyalu
        {
            get
            { return "Amru. " + m_AmrutaGhadiyaluTime.DisplayFormat(Enums.DisplayFormat.LV) + " [" + Constants.Nakshatramu[Convert.ToInt32(NakshatramuIndex)].ToString() + "]"; }
        }
        public Rasi AmrutaGhadiyaluTime
        {
            get
            { return m_AmrutaGhadiyaluTime; }
            set
            { m_AmrutaGhadiyaluTime = value; }
        }
        public AmrutaGhadiyaluDetails()
        {
            m_NakshatramuIndex = 0;
            m_AmrutaGhadiyaluTime = new Rasi();
        }
        public string GetAmrutaGhadiyaluString()
        {
            string retString = string.Format("{0}.{1}", 
                "Amru",
                m_AmrutaGhadiyaluTime.DisplayFormat(Enums.DisplayFormat.LV));
            return retString; 
        }
    }
}
